import request from '@/utils/request'

export default {

  PageByCondition(current, limit, InsQuery) {
    return request({
      url: `/insurance-record/pageUnitByConditon/${current}/${limit}`,
      method: 'post',
      data: InsQuery
    })
  },
  deleteInsById(ids) {
    return request({
      url: `/insurance-record/delIns/${ids}`,
      method: 'get',
      data: ids
    })
  },
  saveIns(Ins) {
    return request({
      url: `/insurance-record/saveInsurance`,
      method: 'post',
      data: Ins
    })
  },
  finIns(id) {
    return request({
      url: `/insurance-record/findInsById/${id}`,
      method: 'get',
    })
  },
  updateInsurance(Insurance) {
    return request({
      url: `/insurance-record/updateIns`,
      method: 'post',
      data: Insurance
    })
  },
  findAll() {
    return request({
      url: `/insurance-record/findAll`,
      method: `post`
    })
  }
}
